package com.runssnail.demo.spring.biz.dao.impl;

import com.runssnail.demo.spring.biz.dao.MemberDAO;
import com.runssnail.demo.spring.biz.domain.MemberDO;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * Created by zhengwei on 2016/1/28.
 */
@Repository
public class MemberImpl implements MemberDAO {

    @Autowired
    private SqlSessionTemplate sqlSessionTemplate;

    public MemberDO getById(Long id) {
        return sqlSessionTemplate.selectOne("com.runssnail.demo.spring.biz.dao.MemberDAO.getById", id);
    }
}
